﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="company_picture.aspx.cs"
    Inherits="TCMSystem.business.enterprise.company_picture" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    <ext:Form ID="extForm1" ShowHeader="false" runat="server" BodyPadding="10px" ShowBorder="true"
        EnableBackgroundColor="true" Height="288px" Title="SimpleForm" LabelAlign="Right">
        <Toolbars>
            <ext:Toolbar ID="ToolbarSaveClose" runat="server">
                <Items>
                    <ext:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                        Text="关闭">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Rows>
            <ext:FormRow>
                <Items>
                    <ext:Grid ID="gridEnterprisePicture" Height="200px" runat="server" BoxFlex="1" ShowBorder="true"
                        ShowHeader="false" EnableCheckBoxSelect="true" EnableRowNumber="true" DataKeyNames="PictureId"
                        OnRowCommand="gridEnterprisePicture_RowCommand">
                        <Toolbars>
                            <ext:Toolbar ID="toolbarDeletePicture" runat="server">
                                <Items>
                                    <ext:Button ID="btnDeleteSelected" Icon="Delete" runat="server" Text="删除选中图片" OnClick="btnDeleteSelected_Click">
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                        </Toolbars>
                        <Columns>
                            <ext:ImageField HeaderText="缩略图" TextAlign="Center" Width="50px" DataImageUrlField="PictureURL"
                                ImageHeight="30px" ImageWidth="30px" DataImageUrlFormatString="~/{0}" />
                            <ext:HyperLinkField ExpandUnusedSpace="true" DataTextField="PictureURL" DataNavigateUrlFields="PictureURL"
                                DataNavigateUrlFieldsEncode="false" DataNavigateUrlFormatString="~/{0}" ToolTip="点击链接在新窗口浏览原图"
                                HeaderText="图片链接" />
                            <ext:LinkButtonField ColumnID="deleteField" TextAlign="Center" Icon="Delete" HeaderText="删除"
                                ToolTip="删除" ConfirmText="确定删除此图片？" ConfirmTarget="Top" CommandName="Delete"
                                Width="50px" />
                        </Columns>
                    </ext:Grid>
                </Items>
            </ext:FormRow>
            <ext:FormRow>
                <Items>
                    <ext:SimpleForm runat="server" LabelAlign="Right" ShowBorder="false" ShowHeader="false"
                        EnableBackgroundColor="true">
                        <Items>
                            <ext:FileUpload runat="server" ButtonIcon="FolderExplore" ButtonText="浏览目录" ID="fileEnterprisePicture"
                                Required="true" ShowRedStar="true" Label="厂区图片" EmptyText="请选择一张图片">
                            </ext:FileUpload>
                            <ext:Button CssStyle="margin:5px 20px auto auto;" ID="btnUpload" runat="server" Icon="ImageAdd"
                                Text="上传图片" ValidateForms="extForm1" OnClick="btnUpload_Click">
                            </ext:Button>
                        </Items>
                    </ext:SimpleForm>
                </Items>
            </ext:FormRow>
        </Rows>
    </ext:Form>
    </form>
</body>
</html>
